package ren.kane.asdppp.transaction.pay;

import java.time.LocalDate;
import java.util.HashMap;
import java.util.Map;

/**
 * @author renrk(1275) on 2019-04-21 11:24 AM
 **/
public class Paycheck {

    private LocalDate payPeriodStartDate;

    private LocalDate payPeriodEndDate;

    private double grossPay;

    private double deductions;

    private double netPay;

    private Map<String, String> field = new HashMap<>();

    public Paycheck() {
    }

    public Paycheck(LocalDate payPeriodStartDate, LocalDate payPeriodEndDate) {
        this.payPeriodStartDate = payPeriodStartDate;
        this.payPeriodEndDate = payPeriodEndDate;
    }

    public LocalDate getPayPeriodStartDate() {
        return payPeriodStartDate;
    }

    public LocalDate getPayPeriodEndDate() {
        return payPeriodEndDate;
    }

    public double getGrossPay() {
        return grossPay;
    }

    public void setGrossPay(double grossPay) {
        this.grossPay = grossPay;
    }

    public double getDeductions() {
        return deductions;
    }

    public void setDeductions(double deductions) {
        this.deductions = deductions;
    }

    public double getNetPay() {
        return netPay;
    }

    public void setNetPay(double netPay) {
        this.netPay = netPay;
    }

    public String getField(String key) {
        return field.get(key);
    }

    public void setField(String key, String value) {
        field.put(key, value);
    }
}
